/**
* 作者: clz
* 日期: 2025-04-15 09:03:02
* 备注: 联盟建筑主表
*/
package com.motu.monstercity.server.game.commondata.union;

import io.vertx.core.json.JsonObject;

public class UnionBuildMainModel {
	protected int id; // id
	protected int unlockLevel; // 解锁所需联盟等级
	protected int time; // 建造所需时间 (秒)

	public UnionBuildMainModel() {
	}

	public UnionBuildMainModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		unlockLevel = obj.containsKey("unlock_level") ? obj.getInteger("unlock_level") : 0;
		time = obj.containsKey("time") ? obj.getInteger("time") : 0;
	}

	public int getId() {
		return id;
	}

	public int getUnlockLevel() {
		return unlockLevel;
	}

	public int getTime() {
		return time;
	}

}
